﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2021_5_13.BookManagement
{
    class PubCompanys
    {
        public string PubName { get; set; }
        public string PubAddress { get; set; }
        public string ContactPerson { get; set; }

        public PubCompanys(string pubName, string pubAddress, string contactPerson)
        {
            this.PubName = pubName;           
            this.PubAddress = PubAddress ;
            this.ContactPerson = contactPerson;
        }

        public PubCompanys() { }

        public void Print() 
        {
            Console.WriteLine("该出版社名为:{0}, 地址为:{1}, 联系人为:{2}",this.PubName,this.PubAddress,this.ContactPerson);
        }
    }
}
